Utility class to retrieve or compute interesting data about textures. More...
Static Public Member Functions | |
static void | computeIrradianceSH (Texture *input, Texture *output) |
static unsigned int | getFormatByteSize (FORMAT format) |
static unsigned int | getFormatChannelCount (FORMAT format) |
static unsigned int | getFormatPlaneCount (FORMAT format) |
static FORMAT | getFormatSrgbEquivalent (FORMAT format) |
static FORMAT | getFormatRgbEquivalent (FORMAT format) |
static FORMAT | getFormatTypelessEquivalent (FORMAT format) |
static FORMAT | getFormatDepthEquivalent (FORMAT format) |
static FORMAT | getFormatUncompressedEquivalent (FORMAT format) |
static FORMAT | getFormatWithAlphaEquivalent (FORMAT format) |
static bool | isFormatOver255 (FORMAT format) |
static bool | isFormatCompressed (FORMAT format) |
static bool | isFormatCompatibleForRenderFlag (FORMAT format, TEX_RENDER_FLAG renderFlag, BIND_FLAG bindFlag) |
static int | getNeededMipsForSize (int width, int height, int depthOrArraySize) |
Utility class to retrieve or compute interesting data about textures.
|
static |
Computes the irradiance map of a texture, using spherical harmonics. This function will compute the values from the input texture's first mip, and prepare the output's CPU data with it. The calling code can then decide when to load and whether the CPU data should be freed or not.
input | The texture from which to compute the irradiance map. |
output | The texture that will receive the irradiance computed. |
|
static |
format | The format to use. |
|
static |
format | The format to use. |
|
static |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
|
static |
format | The format to use. |
|
static |
Checks whether a format is compressed. Compressed formats are usually variants of BC and such.
format | The format to use. |
|
static |
format | The format to use. |
renderFlag | The render flag to check against. |
bindFlag | The binding flag forecast for the texture to use. |
|
static |
width | The width of the texture. |
height | The height of the texture. |
depthOrArraySize | The depth, or array size, of the texture. |